package com.itheima.d0_pritatic;

public class Student {
    private  String name;
    private  int chineseScore;
    private  int matchScore;
    private   int EnglishScore;
    private  int zongfen;

    public Student(String name, int chineseScore, int matchScore, int englishScore, int zongfen) {
        this.name = name;
        this.chineseScore = chineseScore;
        this.matchScore = matchScore;
        EnglishScore = englishScore;
        this.zongfen = zongfen;
    }

    public Student() {
    }

    public int getZongfen() {
        return zongfen;
    }

    public void setZongfen(int zongfen) {
        this.zongfen = zongfen;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getChineseScore() {
        return chineseScore;
    }

    public void setChineseScore(int chineseScore) {
        this.chineseScore = chineseScore;
    }

    public int getMatchScore() {
        return matchScore;
    }

    public void setMatchScore(int matchScore) {
        this.matchScore = matchScore;
    }

    public int getEnglishScore() {
        return EnglishScore;
    }

    public void setEnglishScore(int englishScore) {
        EnglishScore = englishScore;
    }

    @Override
    public String toString() {
        return name+","+chineseScore+","+matchScore+","+EnglishScore;
    }
}
